<template>
  <div>
    <el-row class="title-row">
      <el-col class="title-style" :span="4">
        {{ title }}
      </el-col>
      <el-col :span="20" style="text-align:right">
        <slot name="otherContent" />
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true
    }
  }
}
</script>

<style lang="scss" scoped>
.title-style {
  display: inline-block;
  border-left: 4px solid #409EFF;
  padding: 0 10px;
  font-size: 14px;
//   font-weight: bold;
  color:#d9d9d9;
  letter-spacing: 3px;
}
.title-row {
  height:35px;
  line-height: 35px;
   margin: 20px 0;
}
</style>
